package com.lsmgc.cms;

import com.lsmgc.cms.entity.classify.Classify;
import com.lsmgc.cms.service.classify.ClassifyService;

import java.sql.SQLException;
import java.util.Date;

public class ClassifyAddData {

    public static void main(String[] args) throws SQLException {
        ClassifyService service = new ClassifyService();
        for (int i = 1; i <= 1000; i++) {
            Classify classify = new Classify();
            classify.setName("分类" + i);
            classify.setAddTime(new Date());
            service.addClassify(classify);
        }
    }
}
